/*******************************************************************************
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 *
 * Created on Apr 11, 2008
 *******************************************************************************/
package com.primeton.eos.oss.model.newdataset.impl;

import com.primeton.eos.oss.model.newdataset.AfcROrgPosition;
import com.primeton.ext.data.sdo.DataUtil;
import com.primeton.ext.data.sdo.ExtendedDataObjectImpl;
import commonj.sdo.Type;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>AfcROrgPositionImpl</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcROrgPositionImpl#getId <em>Id</em> <desc>ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcROrgPositionImpl#getOrgId <em>OrgId</em> <desc>机构主键</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcROrgPositionImpl#getPositionId <em>PositionId</em> <desc>岗位主键</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcROrgPositionImpl#getEmployeeId <em>EmployeeId</em> <desc>员工主键</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcROrgPositionImpl#getDependentType <em>DependentType</em> <desc>员工岗位从属类型（主职，兼职）</desc>}</li>
 * </ul>
 * </p>
 *
 * @extends ExtendedDataObjectImpl;
 *
 * @implements AfcROrgPosition;
 */

public class AfcROrgPositionImpl extends ExtendedDataObjectImpl implements AfcROrgPosition {
	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;

	public final static int INDEX_ID = 0;
	public final static int INDEX_ORGID = 1;
	public final static int INDEX_POSITIONID = 2;
	public final static int INDEX_EMPLOYEEID = 3;
	public final static int INDEX_DEPENDENTTYPE = 4;
	public static final int SDO_PROPERTY_COUNT = 5;

	public static final int EXTENDED_PROPERTY_COUNT = -1;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public AfcROrgPositionImpl() {
		this(TYPE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public AfcROrgPositionImpl(Type type) {
		super(type);
	}

	protected void validate() {
		validateType(TYPE);
	}

	/**
	 * Returns the value of the '<em><b>Id</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Id</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Id</em>' attribute.
	 * @see #setId(java.lang.String)
	 */
	public String getId() {
		return DataUtil.toString(super.getByIndex(INDEX_ID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getId <em>Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Id</em>' attribute.
	 * @see #getId()
	 */
	public void setId(String id) {
		super.setByIndex(INDEX_ID, id);
	}

	/**
	 * Returns the value of the '<em><b>OrgId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>OrgId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>OrgId</em>' attribute.
	 * @see #setOrgId(java.lang.String)
	 */
	public String getOrgId() {
		return DataUtil.toString(super.getByIndex(INDEX_ORGID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getOrgId <em>OrgId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>OrgId</em>' attribute.
	 * @see #getOrgId()
	 */
	public void setOrgId(String orgId) {
		super.setByIndex(INDEX_ORGID, orgId);
	}

	/**
	 * Returns the value of the '<em><b>PositionId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>PositionId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>PositionId</em>' attribute.
	 * @see #setPositionId(java.lang.String)
	 */
	public String getPositionId() {
		return DataUtil.toString(super.getByIndex(INDEX_POSITIONID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getPositionId <em>PositionId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>PositionId</em>' attribute.
	 * @see #getPositionId()
	 */
	public void setPositionId(String positionId) {
		super.setByIndex(INDEX_POSITIONID, positionId);
	}

	/**
	 * Returns the value of the '<em><b>EmployeeId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>EmployeeId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>EmployeeId</em>' attribute.
	 * @see #setEmployeeId(java.lang.String)
	 */
	public String getEmployeeId() {
		return DataUtil.toString(super.getByIndex(INDEX_EMPLOYEEID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getEmployeeId <em>EmployeeId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>EmployeeId</em>' attribute.
	 * @see #getEmployeeId()
	 */
	public void setEmployeeId(String employeeId) {
		super.setByIndex(INDEX_EMPLOYEEID, employeeId);
	}

	/**
	 * Returns the value of the '<em><b>DependentType</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>DependentType</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>DependentType</em>' attribute.
	 * @see #setDependentType(java.lang.String)
	 */
	public String getDependentType() {
		return DataUtil.toString(super.getByIndex(INDEX_DEPENDENTTYPE, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getDependentType <em>DependentType</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>DependentType</em>' attribute.
	 * @see #getDependentType()
	 */
	public void setDependentType(String dependentType) {
		super.setByIndex(INDEX_DEPENDENTTYPE, dependentType);
	}


}